target_sources(${CMAKE_PROJECT_NAME} PRIVATE
    ${CMAKE_CURRENT_SOURCE_DIR}/main.c
    ${CMAKE_CURRENT_SOURCE_DIR}/start.S
)

target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE
    ${CMAKE_CURRENT_SOURCE_DIR}/include
)

# 在 add_executable 之后添加以下链接选项
target_link_options(${CMAKE_PROJECT_NAME} PRIVATE
    -T ${CMAKE_CURRENT_SOURCE_DIR}/link/imx6ull.lds # 链接脚本
)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/bsp)